package com.jingjiu.homeservicesapi.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 通用订单主：记录收货信息、联系人等对象 order
 * 
 * @author ruoyi
 * @date 2025-04-16
 */
public class Order extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单ID */
    private Long id;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String contactPhone;

    /** 送货地址 */
    @Excel(name = "送货地址")
    private String deliveryAddress;

    /** 订单类型（如 餐饮、商品等） */
    @Excel(name = "订单类型", readConverterExp = "如=,餐=饮、商品等")
    private String orderType;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setContactPhone(String contactPhone) 
    {
        this.contactPhone = contactPhone;
    }

    public String getContactPhone() 
    {
        return contactPhone;
    }

    public void setDeliveryAddress(String deliveryAddress) 
    {
        this.deliveryAddress = deliveryAddress;
    }

    public String getDeliveryAddress() 
    {
        return deliveryAddress;
    }

    public void setOrderType(String orderType) 
    {
        this.orderType = orderType;
    }

    public String getOrderType() 
    {
        return orderType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("contactPhone", getContactPhone())
            .append("deliveryAddress", getDeliveryAddress())
            .append("orderType", getOrderType())
            .append("remark", getRemark())
            .append("createTime", getCreateTime())
            .toString();
    }
}
